<template>
	<view class="content">
		<view class="roul" @click="goRoul">
		</view>
		<view class="roul" @click="goRoul">
		</view>
		<view class="content-text">
			<view class="more-text">更多问题前往<text @click="goToPage('/pages/help/help')">[帮助中心]</text>为您解答</view>
			<view class="help-view">
				<view class="text1">
					<image src="../../static/ke.png" mode="" class="img"></image> <text>客服电话</text>
				</view>
				<text class="text2">{{kefu_phone}}</text>
				<view class="click" @click="call_phone()">拨打</view>
				<view class="text1">
					<image src="../../static/wei.png" mode="" class="img"></image> <text>客服微信</text>
				</view>
				<text class="text2">{{kefu_wechat}}</text>
				<view class="click1" @click="copy_wechat()">复制</view>
			</view>
		</view>
	</view>
</template>
<script>
	import phoneLimite from '@/libs/function/phoneLimite.js' //判断是否有拨打电话权限
	export default ({
		data() {
			return {
				kefu_wechat: uni.getStorageSync('property_list_by_type').kefu_wechat,
				kefu_phone: uni.getStorageSync('property_list_by_type').telephone
			}
		},
		methods: {
			goToPage(url) {
				uni.navigateTo({
					url: url
				})
			},
			call_phone() {
				phoneLimite(this.kefu_phone)
			},
			copy_wechat() {
				uni.setClipboardData({
					data: this.kefu_wechat,
					success: function() {
						uni.showToast({
							title: '复制成功',
							icon: 'none'
						})
					}
				})
			},
			// 去规则
			goRoul() {
				uni.navigateTo({
					url: '/pages/score/score-rule/score-rule',
				})
			},
		}
	})
</script>
<style lang="scss" scoped>
	.content {
		background: url('../../static/new1.jpg') center center/cover no-repeat;
		width: 100%;
		height: 10076rpx;
		display: flex;
		position: relative;

		.roul {
			width: 140rpx;
			height: 80rpx;
			background: transparent;
		}

		&>view:nth-child(1) {
			position: absolute;
			top: 7152rpx;
			right: 270rpx;
		}

		&>view:nth-child(2) {
			position: absolute;
			top: 8810rpx;
			right: 118rpx;
		}

		&-text {
			align-self: flex-end;
			overflow: hidden;
			width: 654rpx;
			height: 606rpx;
			background: #FFFFFF;
			box-shadow: 0rpx 6rpx 12rpx 2rpx rgba(255, 145, 0, 0.3);
			border-radius: 10rpx;
			margin: 0 auto 260rpx;

			.more-text {
				width: 100%;
				text-align: center;
				font-size: 32rpx;
				font-weight: bold;
				margin-top: 32rpx;

				&>text {
					color: rgba(255, 61, 61, 1);
				}
			}

			.text1 {
				font-size: 32rpx;
				font-weight: bold;
				text-align: center;
				color: #292929;
				display: flex;
				align-items: center;
				justify-content: center;
				margin-top: 50rpx;

				.img {
					width: 40rpx;
					height: 40rpx;
					margin-right: 10rpx;
				}
			}

			.text2 {
				display: flex;
				justify-content: center;
				font-size: 36rpx;
				font-weight: 400;
				color: #292929;
				text-align: center;
				margin-top: 12rpx;
			}
		}
	}

	.click1,
	.click {
		width: 286rpx;
		height: 70rpx;
		border-radius: 48rpx;
		opacity: 1;
		margin: 0 auto;
		line-height: 70rpx;
		text-align: center;
		font-size: 36rpx;
		margin-top: 20rpx;
	}

	.click {
		background: #FCC928;
		color: #fff;
		text-align: center;
	}

	.click1 {
		border-radius: 48rpx;
		border: 2rpx solid #FF851D;
		color: #FF851D;
	}
</style>